/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.0.232SQL2016
 Source Server Type    : SQL Server
 Source Server Version : 13001601
 Source Host           : 192.168.0.232\SQL2016:1433
 Source Catalog        : Test
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13001601
 File Encoding         : 65001

 Date: 06/12/2024 10:01:39
*/


-- ----------------------------
-- Table structure for Role_Menu
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Role_Menu]') AND type IN ('U'))
	DROP TABLE [dbo].[Role_Menu]
GO

CREATE TABLE [dbo].[Role_Menu] (
  [F_Id] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [F_RoleId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_MenuId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_CreateTime] datetime  NULL,
  [F_CreateUser] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_LastModifyTime] datetime  NULL,
  [F_LastModifyUser] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_DeleteTime] datetime  NULL,
  [F_DeleteUser] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [F_DeleteMark] int  NULL
)
GO

ALTER TABLE [dbo].[Role_Menu] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'主键',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_Id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'角色id',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_RoleId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'菜单id',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_MenuId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建时间',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_CreateTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建人',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_CreateUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改时间',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_LastModifyTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'修改人',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_LastModifyUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除时间',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_DeleteTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'删除人',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_DeleteUser'
GO

EXEC sp_addextendedproperty
'MS_Description', N'是否删除',
'SCHEMA', N'dbo',
'TABLE', N'Role_Menu',
'COLUMN', N'F_DeleteMark'
GO


-- ----------------------------
-- Primary Key structure for table Role_Menu
-- ----------------------------
ALTER TABLE [dbo].[Role_Menu] ADD CONSTRAINT [PK__Role_Men__2C6EC723AEF0BF43] PRIMARY KEY CLUSTERED ([F_Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

